package com.tuozixuan.camel.stream;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class StreamDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
	    
	    // 输出到标准输出流
	    //from("file:inboxDir1").to("stream:out");
	    
	    // 输出到标准错误流
	    //from("file:inboxDir1").to("stream:err");
	    
	    // 输出到指定的文件中
	    //from("file:inboxDir1").to("stream:file?fileName=outboxDir1/text.txt");
	}

}
